import { createRouter, createWebHistory } from 'vue-router'
import AllContentView from '@/views/AllContentView.vue'
import HomeView from '@/views/HomeView.vue'
import VideoCollectionView from '@/views/VideoCollectionView.vue'
import AboutView from '@/views/AboutView.vue'
import CategoryView from '@/views/CategoryView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'root',
      component: HomeView,// 这里暂时把封面设置成all-video
    },
    {
      path: '/folders-videos',
      name: 'folders-videos',
      component: AllContentView,
    },
    {
      path: '/all-video',
      name: 'all-video',
      component: AllContentView,
    },
    {
      path: '/collection',
      name: 'collection',
      component: VideoCollectionView
    },
    {
      path: '/category',
      name: 'category',
      component: CategoryView
    },
    {
      path: '/about',
      name: 'about',
      component: AboutView,
    },
  ],
})

export default router
